﻿using System;
using System.Collections.Generic;
using System.Text;

namespace _0419
{
    class tuxing
    {
        //protected int _zhou;
        //public int Zhou
        //{
        //    get { return _zhou; }
        //    set { _zhou = value; }
        //}
        protected int _mian;
        public int Mian
        {
            get { return _mian; }
            set { _mian = value; }
        }
        public int b1 { get; set; }
        public int b2 { get; set; }
        public int b3 { get; set; }
        public int h { get; set; }
        public int c { get; set; }
        public int k { get; set; }
        public double r { get; set; }
    }
    class s :tuxing
    {
        public void sj()
        {
            Console.WriteLine("我是三角形,我的周长是{0},我的面积应该是{1}",b1+b2+b3,_mian);
        }
    }
    class si : tuxing
    {
        public void sb()
        {
            Console.WriteLine("我是四边形,我的周长是{0},我的面积是{1}", (c+k)*2, c*k);
        }
    }
    class y : tuxing
    {
        public void yx()
        {
            Console.WriteLine("我是圆形,我的周长是{0},我的面积是{1}", 3.14*r*2, 3.14*r*r);
        }
    }
}
